package com.vidmt.api.common.anno;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import com.vidmt.api.common.anno.ApiDoc.ApiDocs;

/**
 * 此标记用来用于在testapi页面自动提取注释用
 * @author xqs
 */
@Target({ ElementType.FIELD, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repeatable(ApiDocs.class)
public @interface ApiDoc {
	String[] value();
	
	@Target({ ElementType.FIELD, ElementType.METHOD })
	@Retention(RetentionPolicy.RUNTIME)
	@Documented
	public @interface ApiDocs {
		ApiDoc[] value();
	}
}
